/**
 * @Author YuanYuan
 * @Date 2022/8/14
 * @Time 10:00
 */
public class Test {
    public static void main1(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                System.out.println(1);
            }
        };


        Thread runnable = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(2);
            }
        });

        Thread thread1 = new Thread(()->{
            System.out.println(3);
        });
        thread.start();
        runnable.run();
        thread1.start();

    }
}
